package top.yangbuyi.service;


import com.baomidou.mybatisplus.extension.service.IService;
import top.yangbuyi.domain.Provider;
import top.yangbuyi.dto.ProviderDto;
import top.yangbuyi.vo.DataGridView;

import java.util.List;

public interface ProviderService{
    /**
     * 分页查询
     *
     * @param providerDto
     * @return
     */
    DataGridView listProviderPage(ProviderDto providerDto);

    /**
     * 根据ID查询
     *
     * @param providerId
     * @return
     */
    Provider getOne(Long providerId);

    /**
     * 添加
     *
     * @param providerDto
     * @return
     */
    int addProvider(ProviderDto providerDto);

    /**
     * 修改
     *
     * @param providerDto
     * @return
     */
    int updateProvider(ProviderDto providerDto);

    /**
     * 根据ID删除
     *
     * @param providerIds
     * @return
     */
    int deleteProviderByIds(Long[] providerIds);

    /**
     * 查询所有可用的供应商
     */
    List<Provider> selectAllProvider();

}
